package work02.w5.control.junt4;

import static org.junit.Assert.*;

import java.util.Calendar;

import org.junit.Before;
import org.junit.Test;

import work02.w5.control.MyCalendar;

public class MyCalendarTest {
	MyCalendar cal=new MyCalendar();
	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testGetAMonthDate() {
//		assertEquals(28,cal.getAMonthDate(2010, 1).length);
//		assertEquals(31,cal.getAMonthDate(2012, ).length);
		assertEquals(Calendar.MONDAY, cal.getAMonthDate(2012, 9)[0].getTimeOfWeek());
	}

}
